<!-- 司机关联车辆 -->
<div class="layui-col-sm12 widget main-w">
	<div class="relevance" data-relevance='1'></div>
	<div class="layui-row ">
		<form class="layui-form" action="" method="get">
			<div class="layui-col-sm12 cl-p ">
				<div class="layui-form-item">
				<div></div>
					<input type="hidden" name="driver_id" value="{$Think.get.driver_id}" />
					<div class="layui-inline">
						<input type="text" class="layui-input" name="number" placeholder="车牌号" value="{$Think.get.number}">
					</div>
					<div class="layui-inline ">
						<input type="text" class="layui-input car_type" name="type"  data-check='require'  value="{$Think.get.type}" placeholder="请输入车型">
					</div>
					<div class="layui-inline">
						<button type="submit" class="layui-btn layui-btn-normal">查询</button>
					</div>
				
				</div>
				<div class="layui-col-sm6 norelevance">
					<div class="layui-col-sm10 cl-p">
						未关联车辆：
						<div class="layui-btn-group layui-col-sm12 layui-btn-group-xs cl-p">
							
						</div>
						<table class="layui-hide" id="no-relevance" lay-filter="no-relevance"></table>
						<div id="page"></div>
						<script type="text/html" id="operation">
							{{# if(d.has_bind){ }}
							已绑定
							{{# }else{ }}
							<a class="layui-btn layui-btn-xs" lay-event="relevance">关联</a>
							{{# } }}
						</script>
						<div class="layui-fl">
							<div class="layui-btn-group layui-col-sm12 layui-btn-group-xs cl-p">
							<button type="button" class="layui-btn layui-btn-default morerelevance"> 多个关联</button>
							</div>
						</div>
						
					</div>
				</div>
				<div class="layui-col-sm6 relevance">
					<div class="layui-col-sm10">
						已关联车辆：
						<table class="layui-hide" id="relevance" lay-filter="relevance"></table>
						<script type="text/html" id="operation1">
							{{# if(d.is_default){ }}
							默认车辆
							{{# }else{ }}
							<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="norelevance">取消关联</a>
							<a class="layui-btn layui-btn-xs" lay-event="default">设为默认车辆</a>
							{{# } }}
						</script>
						
					</div>
				</div>
			</div>
		</form>
		<div class="layui-col-sm12">
		<a href="{:url('driver')}" class="layui-btn layui-btn-sm layui-btn-primary layui-radius" style="margin-top: 10px;">返回</a>
	</div>
	</div>
	
</div>